import { Injectable } from '@angular/core';
import { NzMessageService } from "ng-zorro-antd/message"

@Injectable({
    providedIn: 'root'
})
export class MessageService {
    constructor(
        private message: NzMessageService
    ) { }

    addErrorMessage(data) {
        this.message.error(data.message, {
            nzDuration: 5000
        })
    }
}
